<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="com.tz.hospital.entity.*, java.util.List "%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<!-- 引入 layui.css -->
<link rel="stylesheet" href="/hospital_system/layui-v2.6.8/layui/css/layui.css"/>
<!-- 引入 layui.js -->
<script src="/hospital_system/layui-v2.6.8/layui/layui.js"></script>
<style type="text/css">
.search {

    width: 300px;

    height: 40px;

    border-radius: 18px;

    outline: none;

    border: 1px solid #ccc;

    padding-left: 20px;

    position: absolute;

}

.btn {

    height: 35px;

    width: 35px;

    position: absolute;

    

    top: 6px;

    left: 380px;

    border: none;

    outline: none;

    cursor: pointer;

}
.jf{
margin-top: 50px;
margin-left: 70px;
}
.bq{
height:60px;
width:200px;
}
</style>
</head>
<body>
<%List<ypyp> l=(List)request.getAttribute("data"); %>
<%List<hospital_doctor> ly=(List)request.getAttribute("ly"); %>
<%if((String)request.getAttribute("tip")=="nocfid"){ %>
没有该处方或该处方已被缴费！
<%}else{ %>
<div class="layui-row layui-col-space15">
  <div class="layui-col-md7">
    <div class="layui-panel">
      <div style="padding: 30px;">
      <p><font size="5" style="color:#009688;margin-left: 10px;" ><strong>详情信息：</strong></font>主治医生：<%=ly.get(0).getYsname() %></p>
<table class="layui-table"  style="background-color:transparent; border:0px; ">
     <tr>
       
       
           <td>药品名/项目名</td>
           <td>数量</td>
           <td>单价</td>
          
           
           
       </tr>
       <tbody>
       
        <% if (l!=null){ %>
      <%  for(ypyp e:l){ %>
        	  <tr>
        	  <td><%=e.getYpname() %></td>
        	  <td><%=e.getCount() %></td>
        	  <td><%=e.getYpmoney() %></td>
        	  </tr>
        	  
        	  
         <% } %>
         <% } %>
       </tbody>
       
       
     </table></div>
    </div>   
  </div>
  <div class="layui-col-md5">
<%List<list_empp> lx=(List)request.getAttribute("lx"); %>
<%int sum=(int)request.getAttribute("sum"); %>
      <div style="padding: 30px;">
     <font size="5" style="color:#009688;margin-left: 40px;" ><strong>客户信息：</strong></font>
      </br>
      </br>
      <div >
   <div class="layui-form-item">
    <label class="layui-form-label" style="margin-top: 10px;"><font size="4">编号</font> </label>
    <div class="layui-input-inline">
      <input type="text" name="cfid" lay-verify="required" value="<%=lx.get(0).getBrid() %>" autocomplete="off" style="pointer-events: none;" class="layui-input bq">
    </div>
  </div>
   <div class="layui-form-item">
    <label class="layui-form-label" style="margin-top: 10px;"><font size="4">姓名</font></label>
    <div class="layui-input-inline">
      <input type="text" name="cfid" lay-verify="required" value="<%=lx.get(0).getBrname() %>" autocomplete="off" style="pointer-events: none;" class="layui-input bq">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label" style="margin-top: 10px;"><font size="4">电话</font></label>
    <div class="layui-input-inline">
      <input type="text" name="cfid" lay-verify="required" value="<%=lx.get(0).getBrtelephone() %>" autocomplete="off" style="pointer-events: none;" class="layui-input bq">
    </div>
  </div>  
  <div class="layui-form-item">
    <label class="layui-form-label"style="margin-top: 10px;"><font size="4">性别</font></label>
    <div class="layui-input-inline">
      <input type="text" name="cfid" lay-verify="required" value="<%=lx.get(0).getBrsex() %>" autocomplete="off" style="pointer-events: none;" class="layui-input bq">
    </div>
  </div> 
      </div>
      <div class="jf">
      <h1 style="color:#FF5722"><strong>您需缴费：<%=sum %> （元）</strong></h1>
      </br>
      </br>
      <button class="layui-btn layui-btn-radius" onclick="tj()">我要缴费</button></div>
      </div>
     
  </div>
  
</div>    
<%} %>

<script type="text/javascript">
    function tj(){
    	
    	
    	location.href="/hospital_system/deleanupController?cfid="+<%=request.getAttribute("cfid") %>+"&ysid="+<%=ly.get(0).getYsid() %>;
    }
    
    </script>
</body>
</html>